/* index.css */
.profile-page {
    background-color: #f8f4e9;
    color: #5c3d2e;
    height: 100vh;
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: white;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a1887f;
    font-size: 12px;
    text-decoration: none;
    gap: 4px;
    padding: 5px 10px;
}

.nav-item.active {
    color: #a53f2b;
}

.nav-icon {
    font-size: 20px;
}

/* 头部样式 */
.profile-header {
    background: #8B5A2B;
    color: white;
    padding: 20px 15px 30px;
    border-radius: 0 0 15px 15px;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-container {
    position: relative;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.user-avatar-default {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a53f2b;
    font-size: 30px;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-size: 20px;
    font-weight: bold;
}

.member-level {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.user-phone {
    font-size: 14px;
    opacity: 0.9;
}

/* 卡片样式 */
.wallet-card,
.appointment-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 0 15px 20px;
    box-shadow: 0 2px 8px rgba(92, 61, 46, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0e6d9;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #5c3d2e;
}

.view-all,
.view-details {
    color: #a53f2b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 钱包样式 */
.wallet-balance {
    text-align: center;
    padding: 15px 0;
}

.balance-label {
    font-size: 16px;
    color: #7a5d4c;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    color: #a53f2b;
    margin-bottom: 20px;
}

.wallet-summary {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.summary-item {
    padding: 10px;
    flex: 1;
}

.summary-value {
    font-size: 18px;
    font-weight: bold;
    color: #a53f2b;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #7a5d4c;
}

/* 预约记录样式 */
.appointment-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0e6d9;
}

.appointment-item:last-child {
    border-bottom: none;
}

.appointment-info {
    flex: 1;
}

.appointment-date {
    font-weight: bold;
    margin-bottom: 5px;
    color: #5c3d2e;
}

.appointment-service {
    font-size: 14px;
    color: #7a5d4c;
    margin-bottom: 5px;
}

.appointment-therapist {
    font-size: 13px;
    color: #a53f2b;
}

.appointment-status {
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 12px;
    align-self: center;
}

/* 退出按钮样式 */
.logout-section {
    padding: 0 15px 20px;
}

.logout-btn {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    background: #8B5A2B;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.logout-btn:active {
    opacity: 0.9;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    color: #a1887f;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #e0d8d0;
}